package com.jxb.tranction;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TxTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(TrxConfig.class);
        context.refresh();

        TxDemoService txDemoService = (TxDemoService)context.getBean("txDemoService");
        txDemoService.test();
    }
}
